// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//void cancel_out_fight(0,short kill_enc)
//void make_outdoor_enc(short x,short y,short which_enc)
//void set_out_fight_field(short which_field)

begintalkscript;

variables;

short this_sec = 75;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You recall from your geography lessons that most of the Rokaj is at a higher elevation and fairly dry. Only the lowlands of the Gentle Coast get wet.";
	text2 = "These abstract lessons rapidly become very real as you enter a region where the rivers from the mountains pool in the lowlands, making a thick swamp. The smell of rot is in the air, mosquitos feast on you, and you would swear that you see shapes moving in the mist ahead.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0 && gf(175,11) == 0;
	text1 = "There is a huge nest of sticks and trash out here in the depths of the swamp. Gnawed bones are everywhere. There are tracks in the muck, but they are old and indistinct.";
	text2 = "You poke around a bit, but you find nothing of interest.";
	text3 = "This is where you were told the swamp beast would be, the one that lured nearby travelers, but no monsters are near. When you look around, however, you see motion on the opposite bank. Deep in a massive thicket, you see piles of bones. Something green is moving in the mist around them.";
	code =
		sf(100 + this_sec,2,1);
		if (gf(1,25) != 3)
			rs(3);
			else {
				sf(175,12,1);
				rs(2);
				}
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You reach the piles of bones. As you try to search the slimy shore, you feel dizzy. You hear whispering. See shapes. You almost pass out. Which would be fatal. But your training carries you. You stay alert.";
	text2 = "Which keeps you from being instantly slain by the reptilian shapes that flow out of the reeds. One of them is far larger than the others. And far uglier.";
	code =
		sf(100 + this_sec,3,1);
		make_outdoor_enc(248,363,0);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0 && gf(175,11) == 0;
	text1 = "You hear whispering. It comes from all around you. It sends shivers up and down your spine, making you want to flee into the marsh in terror.";
	text2 = "But you keep control. The feeling fades.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0 && gf(175,11) == 0;
	text1 = "You see flickering lights. They hover over the marshy ground fifty feet away. Then they flit off into the mist.";
	text2 = "A lesser explorer might be lured into quicksand by such a phenomenon. You know better.";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The mist grows icy cold. Frost crunches under your feet. A shade floats through the mist toward you. As you shiver, it drifts to a halt in front of you. Watching you. Judging you.";
	text2 = "You are immediately reminded of the shade that spoke to you back in the lighthouse. The Rokaj is a land tormented by ghosts. Often literally.";
	text3 = "After a tense, silent pause, the shade turns and floats off to the north. It is soon lost in the fog.";
	text4 = "After a tense, silent pause, the shade points at you. _You are called. You are challenged. If you would answer the charge, upward._ The shade floats off, heading toward the cliff wall to the north. It melts into the stone and is gone, leaving not a trace behind.";
	code =
		cancel_out_fight(0,1);
		if (gf(9,11) == 0)
			rs(2);
		inc_flag(175,20,1);
		if (gf(175,20) < 3) {
			rs(4);
			}
			else {
				rs(3);
				award_party_xp(10);
				}
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "When you destroy the hideous beast, the swamp calms down a lot. Now that this cunning serpent is no longer trying to sway your mind, things are a lot quieter. No more hallucinations. Alas, the mosquitos are still all too real.";
	text2 = "You root around in the bones and manage to find some treasure. There is a scattering of coins, a few pieces of jewelry, and a ceramic flask.";
	code =
		change_coins(92,TRUE);
		reward_give(340);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				